#include<stdio.h>
int main()
{
	int i = 0, sum = 0, j = 0, a = 1;
	for (i = 1; i <= 5; i++)
	{
		for (j = 1; j <= i; j++)
		{
			a = a * i;
		}
		sum = sum + a;
		a = 1;
	}
	printf("%d\n", sum);
	return 0;
}